<?
$section = $args->section;
$section_data = $args->section_data;

if($position_table = $config->tables[$section['position_table']]['table'])
{
    $table = new Table($position_table);
    $items = $table->select('select * from `'.$position_table.'` where section_id=:section_id order by sort',
        array(
            'section_id'=>$section['id']
        )
    );
}
?>
<section id="<?=$args->section['alias']?>">
    <div class="main-block center">
        <h2><?=$section_data['name']?></h2>
        <ul class="partners">
            <?foreach($items as $item){?>
            <li>
                <img src="<?=get_cache_pic($item['img'],193,193)?>">
            </li>
            <?}?>
        </ul>
    </div>
</section>


